package com.hp.order_service.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {

    private Long id;
    private String username;
    private Long goodsId;
    private Goods goods;

    public Order(Long id, String username, Long goodsId) {
        this.id = id;
        this.username = username;
        this.goodsId = goodsId;
    }
}
